
#pragma once

#include "type.h"


class Unit;
class FrameAnimation;

class Bullet {
public:    
	static float GRAVITY;

	Bullet();
	virtual ~Bullet();

    virtual void init();
    virtual bool update(float ticks);

public:
    int id;
	int unitID;

	float meleeDamage;
	float rangedDamage;
	float damageRange;

    Point src;
    Point dst;
    Point position;
	Point speed;

	bool isHitTarget;

	BulletType type;

	Unit* target;

	FrameAnimation *animation;
	Sprite* sprite;

private:
	static int BULLET_SEED;
};
